home *** CD-ROM | disk | FTP | other *** search
- /**************************************************************************/
- /* BldRates.amirx */
- /* Copyright ©1998 by Dick Whiting */
- /* */
- /*------------------------------------------------------------------------*/
- /* */
- /* Calls the REBOL script for building a currency conversion table. The */
- /* information is gathered from pacific.commerce. Really nice page:) */
- /* */
- /* Note that these are mainly just playing with REBOL (www.rebol.com) */
- /* REBOL, itself, is under constant development and there is little */
- /* guarantee that these will work with the next update. */
- /* */
- /* This works with REBOL 1.0.2.1 */
- /*------------------------------------------------------------------------*/
- /* */
- /* Address Bug Reports or Comments to: */
- /* Dick Whiting <dwhiting@europa.com> */
- /* 23 Oct 1998 */
- /* */
- /* Home Page: http://www.europa.com/~dwhiting/ */
- /* */
- /**************************************************************************/
-
- pragma('STACK',40000)
- pragma('D','REBOL:')
-
- Address Command 'rebol --script AMIRC:/rebol/bldrates.r PIPE PIPE:/bldrates.pipe'
-
- prefix='BldRates'
- response=''
-
- open('IN','PIPE:bldrates.pipe','R')
- do 10
- response=readln('IN')
- if response ~='' then break
- end
- close('IN')
-
- if response ='' then response="Build rates failed"
-
- cecho(response)
- exit
-
-
- cecho: /* This function echo's text to listview*/
- "ECHO P="d2c(27)"b«"prefix"» " arg(1)
- return 0
-
-